package com.eastfair.builder.controller;

import com.eastfair.annotation.annotation.security.PreAuth;
import com.eastfair.core.base.R;
import com.eastfair.home.api.HomeExhibitionManageFeign;
import com.eastfair.home.dto.ExhibitionManageNoticePageQuery;
import com.eastfair.home.vo.ExhibitionManageNoticeVO;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * <p>
 * 前端控制器
 * 展会须知
 * </p>
 *
 * @author linan
 * @date 2022-10-22
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/exhibitionManageNotice")
@Api(value = "ExhibitionManageNotice", tags = "展会须知")
@PreAuth(replace = "builder:exhibitionManageNotice:")
public class BuilderExhibitionManageNoticeController {

    @Resource
    private HomeExhibitionManageFeign homeExhibitionManageFeign;

    /**
     * 查询展会须知
     * @param params params
     * @return R<Boolean>
     */
    @PostMapping("/queryExhibitionNotice")
    public R<ExhibitionManageNoticeVO> queryExhibitionNotice(@RequestBody ExhibitionManageNoticePageQuery params){
        return  homeExhibitionManageFeign.queryExhibitionNotice(params);
    }
}
